{extend name="public/base" /}

<!--尾部-->

<!--返回顶部-->
{block name="content"}
{__block__}
<input type="hidden" name="mun_url" id="mun_url" value="7.2"/>
<script src="../../static/uedi/ueditor.config.js" type="text/javascript" charset="utf-8"></script>
<script src="../../static/uedi/ueditor.all.js" type="text/javascript" charset="utf-8"></script>
<div class="c-r right">
    <div class="label1">
        <div class="title">
            添加图片
        </div>
        <div class="form" id="form">
            <form action="hbedit" method="post" enctype="multipart/form-data">
                <input type="hidden" name="bid" value="{$data.bid}" />
                <div>
                    <label class="ltxt">海报图上传:</label>
                    <img src="{$data.photo}" style="width: 100px;height: 100px" />
                    <input type="file" name="image" id="" value="" onchange="Upimg(this,'.haibao')" />
                </div>
                <div>
                    <button class="btns btn-right btns">保存</button>
                    <!--<button class="cancel" onclick="history.go(-1)">取消</button>-->
                </div>
                <div class="clear"></div>
            </form>
        </div>
    </div>
</div>
<!--<div id="main" style="width: 600px;height:400px;"></div>-->
<script>
    $(".btns").click(function() {
        if($('.form input[name="image"]').val() == ''){
            prompt('上传图片不能为空', 0)
            return false
        }
    });
</script>
{/block}














